IndexController.indexAction = new (function ()
{
    "use strict";

    var _self = this;

    /**
     * @returns {String}
     */
    this.toString = function ()
    {
        return 'indexAction';
    };


    $('#logar').click(function () {
        var form = $('#frmLogin');
        if (Core.form.validate(form)) {
            Zf2.Ajax().submit({
                "controller": "login",
                "action": "logar",
                "data": form,
                "callbackSuccess" : function(){
                    Core.refresh();
                }
            });
        }
    });

    Core.console.debug(this.toString(), 'init', Core.console.type.INFO);
});

